<%@ include file="/WEB-INF/jsp/common/include.jsp" %>
<%@ page pageEncoding="UTF-8"%>
<c:if test="${searchParameters.page gt 0}">
  <c:url value="/ad/search/${searchParameters.city}/${searchParameters.page - 1}/list.do" var="pageLink">
    <c:if test="${not empty searchParameters.minPrice}">
      <c:param name="minPrice" value="${searchParameters.minPrice}"/>
    </c:if>
    <c:if test="${not empty searchParameters.maxPrice}">
      <c:param name="maxPrice" value="${searchParameters.maxPrice}"/>
    </c:if>
    <c:if test="${not empty searchParameters.room}">
      <c:param name="room" value="${searchParameters.room}"/>
    </c:if>
    <c:if test="${not empty searchParameters.locationLabel}">
      <c:param name="locationLabel" value="${searchParameters.locationLabel}"/>
    </c:if>
    <c:if test="${not empty searchParameters.lat}">
      <c:param name="lat" value="${searchParameters.lat}"/>
    </c:if>
    <c:if test="${not empty searchParameters.lon}">
      <c:param name="lon" value="${searchParameters.lon}"/>
    </c:if>
  </c:url>
  <script>
    $(document).bind('keydown', 'Ctrl+left', go2prevPage);
    prevPageUrl = "${pageLink}";
  </script>
  <li class="back"><span><span>&larr;</span>&nbsp;Ctrl&nbsp;</span> <a href="${pageLink}">назад</a></li>
</c:if>